home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / renaisnc / lib.lha / Lib / graphics.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-04  |  863 b   |  35 lines

  1. /*
  2.  * Header file:  graphics
  3.  * Author:  Gemini Lasswell
  4.  * Last Modified:  6 June 1989
  5.  *
  6.  * 6/6/89  Added attenuation and scattered color fields (gem)
  7.  *
  8.  * Purpose: Header file for users of the 4D, matrix stack and CSG tree
  9.  * subroutines in /usr/graphics/src/lib.
  10.  */
  11.  
  12. #include <stdio.h>
  13. #include "Math.h"
  14. #include "4D.h"
  15. #include "mstack.h"
  16.  
  17. #define TRUE 1
  18. #define FALSE 0
  19.  
  20. typedef struct {        /* The red, green, and blue spectral */
  21.   double r,g,b;            /* This is used for diffuse, specular, */
  22. } Response;            /* transmittive and reflective responses. */
  23.  
  24. typedef struct {
  25.   double r,g,b,a;
  26. } Color;
  27.  
  28. typedef struct {  /* description of surface characteristics */
  29.     int      specularity;  /* exponent in Phong model */
  30.     Response emittance, diffuse, reflectance, transmittance, specular;
  31.     Response attenuation, scattered_color;
  32. } SurfaceDescr;
  33.  
  34. #include "tree.h" 
  35.